import requests


class IhrmLogin(object):
    @classmethod
    def ihrmlogin(cls,jsons):
        resp=requests.post(url="http://ihrm-test.itheima.net/api/sys/login",json=jsons)

        return resp
if __name__ == '__main__':
    json1={"mobile":"13800000008","password":"123456"}
    hel=IhrmLogin.ihrmlogin(json1)

    print(hel.json())
